package util

const (
	OVER_DONE  = 1 + iota // 完全成交
	SOME_DONE //部分成交
	NOT_DONE //没有成交
)

const (
	LIMIT = 1 + iota ///限价单
	MARKET //市价单
	STOP //止损限价单
	STOP_MARKET //止损市价单
	TAKE_PROFIT //止盈限价单
	TAKE_PROFIT_MARKET //止盈市价单
	TRAILING_STOP_MARKET //跟踪止损单
)

const (
	OPEN = 1 +iota	//开
	CLOSE	//平
)
const (
	BUY = 1 +iota	//多
	SELL	//空
)
const (
	OPEN_BUY   = 1 + iota //开多
	OPEN_SELL             //开空
	CLOSE_BUY             //平多
	CLOSE_SELL            //平空
)

const (
	ORDER_OPEN_SEND  =  1 + iota//订单开仓已发送
	ORDER_CLOSE_SEND //订单平仓已发送
	ORDER_OPEN //订单已开仓
	ORDER_CLOSE //订单已平仓
	ORDER_CANCEL 	// 订单已撤单
)